package org.jaaksi.androidforflutterdemo.server;

import libcore.net.core.BaseOkHttpCreator;
import libcore.net.interceptor.HeaderInterceptor;
import okhttp3.OkHttpClient;

public class OkHttpCreator extends BaseOkHttpCreator {

  @Override
  public OkHttpClient.Builder customize(OkHttpClient.Builder builder) {
    builder.addInterceptor(new HeaderInterceptor() {
      @Override
      public void initHeaders() {
        //String token = StoreConfig.getToken();
        //if (token != null) {
        //  addHeader("token", token);
        //}
      }
    });
    return builder;
  }
}
